//
//  SXHTTPEngine.h
//  Demo6_SXHttpEngine
//
//  Created by SXW on 16/3/3.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^Success)(id responseObject);
typedef void(^Failure)(NSError* error);

@interface SXHTTPEngine : NSObject

//获取 单例 对象
+ (instancetype)shareManager;

/*get 请求的方法*/
- (void)GET:(NSString*)url params:(NSDictionary*)params success:(Success)success failure:(Failure)failure;


/*普通的 post 请求的方法*/
- (void)POST:(NSString*)url params:(NSDictionary*)params success:(Success)success failure:(Failure)failure;

@end
